import React, { Component } from 'react'
import './index.css';
import YinYueGuan from '../../pages/YinYueGuan';
import MineMusic from '../../pages/MineMusic';
import {Route,NavLink} from 'react-router-dom';

export default class Music extends Component {
    render() {
        return (
            <div className="music-container">
                <header>
                    <NavLink to="/home"><div className="top-nav">音乐馆</div></NavLink>
                    <NavLink to="/mine"><div className="top-nav">我的音乐</div></NavLink>
                </header>
                <div className="container">
                    <Route path="/home" component={YinYueGuan}  />
                    <Route path="/mine" component={MineMusic}  />
                </div>
            </div>
        )
    }
}
